package com.ty.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 退款表
 * </p>
 *
 * @author txy
 * @since 2024-03-14
 */
@TableName("after_sales")
@Data
public class AfterSales implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "as_id", type = IdType.AUTO)
    private Integer asId;

    /**
     * 订单id
     */
    private String orderId;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 退款状态，6，处理中，7、退款成功，8、拒绝
     */
    private Integer status;

    /**
     * 申请时间
     */
    private String createTime;
    /**
     * 结果时间
     */
    private String resultTime;

    /**
     * 退货原因
     */
    private String returnCause;

    /**
     * 拒绝原因
     */
    private String refuseCause;

    private Double returnTotal;

    @TableField(exist = false)
    private List<OrderItem> orderItems;
}
